package com.cspg.ssss.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.Scheduled;

//@Configuration
public class SyncProblemScheduleJob {
    private static Logger log = LoggerFactory.getLogger(SyncProblemScheduleJob.class.getName());

    @Autowired
    ProblemService problemService;
    //@Scheduled(cron="5/5 * * * * ?")
    //@Scheduled(cron="0 0 1 * * ?")
    public void SyncProblem(){
        log.info("执行定时任务。。。。");
        problemService.SycProblemFromSrc();
        log.info("执行定时任务完毕。。。。");

    }
}
